import { request } from '../../services/request';

export const logoutApi = async () => {
    console.log('任务页面请求接口: /app/auth/logout');
    const res = await request('/app/auth/logout', {
        method: 'POST',
    });
    console.log('任务页面退出登录接口返回:', res);
    return res;
};

export const searchMesTaskApi = async (params: {
    current: number;
    size: number;
    schedule_state: boolean;
    product_encode?: string;
}) => {
    return await request('/mesTask/searchMesTask', {
        method: 'POST',
        body: JSON.stringify(params),
    });
};